.chat-page {
  min-height: 100vh;
  background: #f2f5f9;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;

  .chat-scroll {
    flex: 1;
    padding: 16px;
    box-sizing: border-box;
  }

  .chat-tips {
    text-align: center;
    font-size: 12px;
    color: #7a869a;
    margin-bottom: 12px;
  }

  .chat-item {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;

    &.item-user {
      flex-direction: row-reverse;
      .chat-bubble {
        background: #4f46e5;
        color: #fff;
        .bubble-meta { color: rgba(255, 255, 255, 0.72); }
        .bubble-content { color: #fff; }
      }
    }

    &.item-service {
      .chat-bubble {
        background: #ffffff;
        color: #1f2937;
      }
    }

    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 20px;
      background: #e2e8f0;
      object-fit: cover;
    }
  }

  .chat-bubble {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);

    .bubble-meta {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      margin-bottom: 6px;
      color: #94a3b8;
    }

    .bubble-content {
      font-size: 14px;
      line-height: 1.5;
      word-break: break-word;
    }

    .bubble-image {
      width: 180px;
      height: 180px;
      border-radius: 10px;
      background: #e2e8f0;
    }
  }

  .chat-input-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
  }

  .input-actions {
    display: flex;
    // flex-direction: column;
    gap: 10px;

    .action-btn {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      .action-plus {
        font-weight: 600;
        line-height: 1;
      }
    }
  }

  .input-textarea {
    flex: 1;
    min-height: 38px;
    max-height: 120px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    background: #f8fafc;
    border-radius: 10px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    color: #1f2937;
  }

  .send-btn {
    width: 66px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
}

